-- GENERATED SPELL FOR [Skeletal Warlord] --


function spell0_1788(pUnit, Event) --@Backhand,n/a--
pUnit:FullCastSpellOnTarget(6253,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1788', 2312, 1)
end

function spell1_1788(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(12054,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1788', 15000, 1)
end

function Sorts_1788(pUnit, Event)
local choix_sorts_1788 = math.random(0, 1)
if choix_sorts_1788 == 0 then
pUnit:RegisterEvent('spell0_1788', 1, 1)
end
if choix_sorts_1788 == 1 then
pUnit:RegisterEvent('spell1_1788', 1, 1)
end
end

function mob1788_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1788', math.random(1500, 3000), 1)
end

function mob1788_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1788_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1788_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1788, 1, 'mob1788_Action')
RegisterUnitEvent(1788, 2, 'mob1788_Leave')
RegisterUnitEvent(1788, 3, 'mob1788_Kill')
RegisterUnitEvent(1788, 4, 'mob1788_Die')
